package com.enjoyor.soa.traffic.core.tpcms.mapper.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.enjoyor.soa.traffic.core.tpcms.constant.PassVehicleFileSqlId;
import com.enjoyor.soa.traffic.core.tpcms.domain.PassVehicleFile;
import com.enjoyor.soa.traffic.core.tpcms.mapper.IPassVehicleFileMapper;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.impl.BaseMapper;

@Service
@Transactional
public class PassVehicleFileMapper extends BaseMapper<PassVehicleFile> implements IPassVehicleFileMapper {

    @Override
    public List<PassVehicleFile> getFileList(Map<String, Object> map) {
        return sqlSessionTemplate.selectList(getSqlName(PassVehicleFileSqlId.SQL_SELECT_LIST), map);
    }

    @Override
    public int deleteFileByVehicleId(String applyVehicleId) {
        return sqlSessionTemplate.delete(getSqlName(PassVehicleFileSqlId.SQL_DELETE), applyVehicleId);
    }

}
